build: Fix generating introspection on MacOS
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Mar 2015 22:12:32 +0000 (22:12 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Mar 2015 22:15:56 +0000 (22:15 +0000)
We need to filter out platform-specific sources from the files that we
use with the introspection scanner.

In this specific case I could have moved the gtkclipboard-quartz.c and
the gtkdnd-quartz.c files out of the $(gtk_base_c_sources) variable, but
doing a filter-out on the variable itself is more resilient in case we
eventually add files and we forget about the result.

gtk/Makefile.am

index 9a8285941e5f1d3284e973366d0d996b3fdfde93..83dfe31588b61c7dc20a086e18f34b04f3e87283 100644 (file)
@@ -1330,7 +1330,7 @@ distclean-local:
 if HAVE_INTROSPECTION
 introspection_files = \
     $(filter-out %private.h gtktextdisplay.h gtktextlayout.h gtkx.h, $(gtkinclude_HEADERS) $(a11yinclude_HEADERS) $(deprecatedinclude_HEADERS)) \
-    $(gtk_base_c_sources) \
+    $(filter-out %win32.c %quartz.c, $(gtk_base_c_sources)) \
     gtkprintoperation-unix.c \
     gtktypebuiltins.h \
     gtktypebuiltins.c